package com.hdax.dm.api.scheduler.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hdax.dm.api.scheduler.SchedulerControllerApi;
import com.hdax.dm.entity.scheduler.Scheduler;
import com.hdax.dm.entity.scheduler.SchedulerSeatPrice;
import com.hdax.dm.service.SchedulerPService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class SchedulerPController implements SchedulerControllerApi {

    @Autowired
    private SchedulerPService schedulerPService;

    @Override
    public List<Scheduler> timePlan(Long itemId) {
        QueryWrapper<Scheduler> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("itemId",itemId);
        return schedulerPService.list(queryWrapper);
    }

}
